﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;

namespace ProjectFootball.MVC.Foundation.Repositories
{
    public interface IDataRepository<T>
    {
        void Add(T entity);
        void AddAll(IEnumerable<T> entities);
        void Remove(T entity);
        void RemoveAll(IEnumerable<T> entities);
        IQueryable<T> Where(Expression<Func<T, bool>> predicate);
        IQueryable<T> Where(Expression<Func<T, bool>> predicate, string include);
        IQueryable<T> Where(Expression<Func<T, bool>> predicate, string[] include);
        IQueryable<T> All();
        IQueryable<T> All(string include);
        IQueryable<T> All(string[] include);
    }
}